package eirkdbd.lab1.membership.functions;

import eirkdbd.lab1.data.Team;
import eirkdbd.lab1.membership.MembershipFunction;
import eirkdbd.lab1.membership.functions.helpers.LinearMembershipFunction;


/**
 * PointScoring is team ability to score points
 *
 */
class PointScoring implements MembershipFunction {
	
	private final double maxX = 96.;
	private final double minX = 60.;	
	private LinearMembershipFunction lmf;
	
	public PointScoring() {
		lmf = new LinearMembershipFunction(minX, maxX);
	}

	/**
	 * Returns degree of membership to PointScoring teams group
	 */
	public double getValue(Team team) {
		return lmf.value(team.getAccuracy());
	}

}
